package com.jrx.anytxn.reporting.mapper.ext;

import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface ExtCmInteCoImpairmentInfoMapper {

    /**
     * 按照日期删除数据
     *
     * @return
     */
    int deleteByAccountingDate(@Param("accountingDate") Date accountingDate);

    Integer countByEtlDt(@Param("etlDt") Date etlDt);

    /**
     *
     * @param businessDate
     * @param conOrgId
     * @param subjectId
     * @param amount
     * @param tenantId
     * @return
     */
    Integer countByOrgSubjectAmt(@Param("conOrgId")String conOrgId, @Param("subjectId")String subjectId, @Param("amount")String amount, @Param("tenantId")String tenantId);

    /**
     * 减值供数修数
     * @param businessDate
     * @param datePattern
     */
    void modifyEntryDtl(String businessDate, String datePattern);
}
